/**
 * 接口 URL 数据集
 * 集中管理，方便统一维护。建议采用一级数据结构 (urls.membersIndex)，不要使用二级数据结构 (urls.members.index)。
 * URL规范尽量采用 Resetful 资源路由格式（包括 index, read, save, update, delete）。
 */
const prefix = '/api/admin';
class ApiUrls {
    // 登录模块
    login = prefix + '/login'
    forgetPassword = prefix + '/forget-password'


    // 管理员管理
    authAdminsIndex = prefix + '/auth-admins/index'
    authAdminsRead = prefix + '/auth-admins/read'
    authAdminsSave = prefix + '/auth-admins/save'
    authAdminsUpdate = prefix + '/auth-admins/update'
    authAdminsDelete = prefix + '/auth-admins/delete'

    // 权限分组管理
    authGroupsIndex = prefix + '/auth-groups/index'
    authGroupsRead = prefix + '/auth-groups/read'
    authGroupsSave = prefix + '/auth-groups/save'
    authGroupsUpdate = prefix + '/auth-groups/update'
    authGroupsDelete = prefix + '/auth-groups/delete'

    // 权限规则管理
    authRulesIndex = prefix + '/auth-rules/index'
    authRulesRead = prefix + '/auth-rules/read'
    authRulesSave = prefix + '/auth-rules/save'
    authRulesUpdate = prefix + '/auth-rules/update'
    authRulesDelete = prefix + '/auth-rules/delete'

    // 系统配置管理
    sysConfigsIndex = prefix + '/sys-configs/index'
    sysConfigsRead = prefix + '/sys-configs/read'
    sysConfigsSave = prefix + '/sys-configs/save'
    sysConfigsUpdate = prefix + '/sys-configs/update'
    sysConfigsDelete = prefix + '/sys-configs/delete'

    // 系统通知管理
    sysNoticesIndex = prefix + '/sys-notices/index'
    sysNoticesRead = prefix + '/sys-notices/read'
    sysNoticesSave = prefix + '/sys-notices/save'
    sysNoticesUpdate = prefix + '/sys-notices/update'
    sysNoticesDelete = prefix + '/sys-notices/delete'
}

export default new ApiUrls();